package cn.glutnn.dao;

import cn.glutnn.entity.User;
import cn.glutnn.util.JdbcUtils;

public class UserDao {
	
	public User findOneByUsernameAndPassword(String username, String password) {
		String sql = "select * from t_user where username='"+username+"' and password='"+password+"'";
		return JdbcUtils.queryOne(sql, User.class);
	}

}
